package com.larly.service;

import com.larly.model.domain.NoteShares;
import com.baomidou.mybatisplus.extension.service.IService;
import com.larly.model.dto.noteshare.ShareNotesRequest;
import com.larly.model.vo.NotesVO;

import javax.servlet.http.HttpServletRequest;

/**
* @author 许颢达
* @description 针对表【note_shares(笔记分享记录表)】的数据库操作Service
* @createDate 2025-09-01 12:48:47
*/
public interface NoteSharesService extends IService<NoteShares> {

    /**
     * 分享笔记
     * @param shareNotesRequest 分享请求
     * @param request HTTP请求
     * @return 分享链接
     */
    String shareNote(ShareNotesRequest shareNotesRequest, HttpServletRequest request);

    /**
     * 通过分享链接获取笔记
     * @param shareLink 分享链接
     * @return 笔记信息
     */
    NotesVO getNoteByShareLink(String shareLink);
}
